/**    
 * 文件名：ApprovalComponent.java</br>
 *    
 * 版本信息：v1.0</br>
 * 日期：2017年10月13日</br>
 * © 2005-2017 雷技信息科技（上海）有限公司版权所有</br>
 *
 */
package com.logic.landseaserver.models.approval.taskhandle;

import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.logic.landseaserver.persistence.read.ApprovalRecordReadMapper;
import com.logic.landseaserver.persistence.read.ApprovalTempRecordReadMapper;
import com.logic.landseaserver.persistence.write.ApprovalLogRecordWriteMapper;
import com.logic.landseaserver.persistence.write.ApprovalRecordWriteMapper;
import com.logic.system.persistence.read.UserReadMapper;

/**
 *
 * 项目名称：system-server</br>
 * 类名称：ApprovalComponent</br>
 * 类描述：审核辅助类初始化</br>
 * 创建人：Aaron</br>
 * 创建时间：2017年10月13日 下午4:06:38</br>
 * 
 * @version 1.0
 *
 */
@Component
public class ApprovalComponent
{
    @Autowired
    private ApprovalRecordReadMapper approvalRecordReadMapper;
    
    @Autowired
    private ApprovalTempRecordReadMapper approvalTempRecordReadMapper;
    
    @Autowired
    private UserReadMapper userReadMapper;
    
    @Autowired
    private ApprovalLogRecordWriteMapper approvalLogRecordWriteMapper;
    
    @Autowired
    private ApprovalRecordWriteMapper approvalRecordWriteMapper;
    
    @PostConstruct
    private void init()
    {
        ApprovalHelper.getInstance().init(approvalRecordReadMapper,
            approvalTempRecordReadMapper,
            userReadMapper,
            approvalLogRecordWriteMapper, approvalRecordWriteMapper);
    }
}
